package com.shensi.adminCollect.controller.applet;
import com.shensi.adminCollect.service.applet.impl.QuerySummaryService;
import com.shensi.common.core.controller.BaseController;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.adminCollect.domain.station.StationOillGun;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class AssistController extends BaseController {
    @Autowired
    private QuerySummaryService querySummaryService;

    /**
     * 查询油枪
     */
    @GetMapping("/customer/ic/gunlist")
    public AjaxResult gunlist(@ApiParam(value = "用户名", required = true) Long stationId) {

        StationOillGun staOilGun = new StationOillGun();

//        staOilGun.setGunNameList(gunStr.split(","));
        staOilGun.setStationId(stationId);

        List<StationOillGun> stationOillGuns = querySummaryService.selectGunlist(staOilGun);


        return AjaxResult.success(stationOillGuns);
    }
}
